<html>
	<head>
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7/dijit/themes/tundra/tundra.css" />
        <script type="text/javascript">
            var dojoConfig = {
                parseOnLoad: true,
                isDebug: true,
                locale: 'ru-ru',
            };
        </script>
        <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7/dojo/dojo.js"></script>

        <script type="text/javascript">
            dojo.ready(function() {
                require(['dojo/_base/declare'], function(declare) {
                    
                    var A = declare(null, {
                        "-chains-": {
                            constructor: "manual"
                        },
                        constructor : function () {
                            console.log('A');
                        }
                    });

                    var B = declare(A, {
                        constructor : function () {
                            this.inherited(arguments);
                            console.log('B');
                        }
                    });

                    A.extend({
                        newAlert : function (msg) { alert(msg) }
                    });

                    //objA = new A();
                    objB = new B();

                    objB.newAlert('sd');

                });
            });
        </script>


    </head>
    <body class="tundra">
        <div id="mainDiv">

        </div>
    </body>
</html>